<extend name="Space/index" />
<block name="main">
	
<div style="min-height: 467px;" id="ct" class="ct2 wp cl">
	<div class="mn">
		<div class="bm">
			<div class="bm_h">
				
			<if condition="$_SESSION['uid'] eq $_GET['uid']">
				<span class="xi2 y"><a href="<{:U('Space/imageUpload',array('uid'=>$_GET['uid']))}>" class="addnew">新建相册</a></span>
				<else/>
			</if>	
				<h1 class="mt">相册</h1>
			
			</div>
			<div class="bm_c">

                <if condition="$album eq 0">

				<if condition="$_SESSION['uid'] eq $_GET['uid']">
				<div style="height:40px;padding:80px;margin-left:140px">
您还没有上传的图片哟（*∩_∩*），
					<a href="<{:U('Space/imageUpload',array('uid'=>$_GET['uid']))}>">上传图片</a> 
				</div>
				<else/>
				<div style="height:40px;padding:80px;margin-left:140px">
TA还没有上传的图片哟（*∩_∩*） 
				</div>
				</if>
                <else/>

				<div class="ptw album_list">

					<ul class="ml mla cl">
						<volist name="data" id="vo">

						<li>
						<div class="c">
							<a href="<{:U('Space/imglist',array('uid'=>$_GET['uid'],'alid'=>$vo['alid']))}>"><img src="__PUBLIC__/Home/image/space/album/<{$vo.iname}>" alt="我的相册"></a>
						</div>
						<p class="ptn">
							<a href="<{:U('Space/imglist',array('uid'=>$_GET['uid'],'alid'=>$vo['alid']))}>" class="xi2"><{$vo.alname}></a> 
						</p>
						<if condition="$_SESSION['uid'] eq $_GET['uid']">
						<p class="xg1_album">
							<a href="<{:U('Space/delalbum',array('alid'=>$vo['alid']))}>">删除</a><span class="pipe">|</span><a href="<{:U('Space/editalbum',array('uid'=>$_GET['uid'],'alid'=>$vo['alid']))}>">编辑</a><span class="pipe">|</span><a href="<{:U('Space/uploadimg',array('uid'=>$_GET['uid'],'alid'=>$vo['alid']))}>">上传</a>
						</p>
						<else/>
						</if>
						</li>
						</volist>
					</ul>

				</div>
                </if>
			</div>
		</div>
	</div>
	<div class="sd">
		<div id="pcd" class="bm cl">
			<div class="bm_c">
				<div class="hm">
					<p>
						<img src="__PUBLIC__/Home/image/space/touxiang/<{$image}>" width="120">
					</p>
					<h2 class="mbn"><a href="<{:U('Space/index')}>" target="_blank"><{$username}></a></h2>
				</div>
				<ul class="xl xl2 cl ul_list">
					<li class="ul_avt"><a href="<{:U('Space/edithead',array('uid'=>$_SESSION['uid']))}>">编辑头像</a></li>
					<li class="ul_profile"><a href="<{:U('Space/ziliao',array('uid'=>$_SESSION['uid']))}>">更新资料</a></li>
				</ul>
			</div>
		</div>
	</div>
	<script type="text/javascript">
function succeedhandle_followmod(url, msg, values) {
var fObj = $('followmod');
if(values['type'] == 'add') {
fObj.innerHTML = '取消收听';
fObj.href = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+values['fuid'];
} else if(values['type'] == 'del') {
fObj.innerHTML = '收听TA';
fObj.href = 'home.php?mod=spacecp&ac=follow&op=add&hash=4badb16e&fuid='+values['fuid'];
}
}
	</script>
</div

</block>
